Skip to content

Add RAK11200 / RAK13300 variant#1925

Open
weebl2000 wants to merge 7 commits into
meshcore-dev:devfrom
weebl2000:ashinn/rak11200-support-rebased
Open

Add RAK11200 / RAK13300 variant#1925
weebl2000 wants to merge 7 commits into
meshcore-dev:devfrom
weebl2000:ashinn/rak11200-support-rebased

Conversation

@weebl2000
Copy link
Copy Markdown
Contributor

@weebl2000 weebl2000 commented Mar 5, 2026

Supersedes PR #800

@zenire @andyshinn please test this firmware:

This PR can be closed if andyshinn#1 is merged Original PR closed in favor of this one.

This fw is tested and works.

Comment thread variants/rak11200/platformio.ini
@andyshinn
Copy link
Copy Markdown
Contributor

Seems to work. I flashed on mine locally.

@weebl2000
Copy link
Copy Markdown
Contributor Author

weebl2000 commented Mar 5, 2026

Seems to work. I flashed on mine locally.

Great, just added a wifi variant too. https://mcimages.weebl.me/?commitId=ashinn/rak11200-support-rebased&variant=RAK_11200_companion_radio_wifi

@weebl2000
Copy link
Copy Markdown
Contributor Author

weebl2000 commented Mar 5, 2026

@liamcottle @ripplebiz This PR supersedes #800 and addresses all comments that were made there. I've checked against RAK11200 and RAK13300 datasheets and am pretty sure all mappings are correct now. @andyshinn confirms it's working.

No clue how common this board is these days but the variant works.

Summary of changes made compared to #800

Pin corrections:

  • GPS TX/RX: 1/3 → 21/19 (correct UART1 pins per RAK11200 datasheet)
  • I2C SDA/SCL: 21/22 → 4/5 (correct I2C1 WisBlock connector pins)

Board code cleanup:

  • Removed getBattMilliVolts() override and ADC_MULTIPLIER define (uses base class)
  • Removed build_unflags = -Os / build_type = release

Header file (pins.h) simplified:

  • Removed duplicate LoRa pin defines (already set in platformio.ini)
  • Removed WisBlock GPIO mapping block (unused)
  • Removed GPS_POWER_TOGGLE define
  • Added datasheet reference comments

Radio code improved:

  • Conditional SPI: uses custom SPIClass when P_LORA_SCLK is defined, default SPI otherwise
  • radio_set_tx_power signature: uint8_t → int8_t

@weebl2000 weebl2000 force-pushed the ashinn/rak11200-support-rebased branch from 23f7390 to ea6b63a Compare March 23, 2026 13:27
@weebl2000 weebl2000 force-pushed the ashinn/rak11200-support-rebased branch from ea6b63a to 06dbec5 Compare April 4, 2026 11:18
andyshinn and others added 7 commits May 26, 2026 11:51
- Fix I2C pins in variant.h (GPIO21/22 → GPIO4/5 per datasheet)
- Fix GPS UART pins in platformio.ini (UART0 1/3 → UART1 21/19)
- Fix radio_set_tx_power signature (uint8_t → int8_t)
- Remove conflicting duplicate defines between variant.h and Board.h
(P_LORA_BUSY was RADIOLIB_NC vs 13, ADC_MULTIPLIER was 1.85 vs 5761)
- Remove stale LoRa/WisBlock defines from variant.h (Board.h is
authoritative)
- Remove "ethernet" and "can" from board JSON connectivity
- Use static SPIClass for radio init (matches Heltec V3 convention)
- Remove build_unflags=-Os (keep size optimization for 4MB flash)

Verified against RAK11200/RAK13300 datasheets
@weebl2000 weebl2000 force-pushed the ashinn/rak11200-support-rebased branch from 06dbec5 to 9779972 Compare May 26, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants